package org.code.boot.domain.common;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableField;
import org.code.boot.domain.BaseEntity;

/**
 * 留言对象 com_message
 * 
 * @author coder
 * @date 2025-08-27
 */
public class ComMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 留言ID */
    private Long messageId;

    /** 留言标题 */
    private String title;

    /** 留言内容 */
    private String content;

    /** 联系方式 */
    private String contactInfo;

    /** 用户 */
    private Long userId;

    /** 昵称 */
    private String nickname;

    /** 状态 */
    private String status;

    /** 回复内容 */
    private String replyContent;

    /** 回复人 */
    private String replyBy;

    /** 回复时间 */
    private Date replyTime;

    /** 用户IP */
    private String userIp;

    /** 用户名称 */
    @TableField(exist = false)
    private String userIdName;

    public void setMessageId(Long messageId) 
    {
        this.messageId = messageId;
    }

    public Long getMessageId() 
    {
        return messageId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setContactInfo(String contactInfo) 
    {
        this.contactInfo = contactInfo;
    }

    public String getContactInfo() 
    {
        return contactInfo;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setReplyContent(String replyContent) 
    {
        this.replyContent = replyContent;
    }

    public String getReplyContent() 
    {
        return replyContent;
    }

    public void setReplyBy(String replyBy) 
    {
        this.replyBy = replyBy;
    }

    public String getReplyBy() 
    {
        return replyBy;
    }

    public void setReplyTime(Date replyTime) 
    {
        this.replyTime = replyTime;
    }

    public Date getReplyTime() 
    {
        return replyTime;
    }

    public void setUserIp(String userIp) 
    {
        this.userIp = userIp;
    }

    public String getUserIp() 
    {
        return userIp;
    }

    public void setUserIdName(String userIdName) 
    {
        this.userIdName = userIdName;
    }

    public String getUserIdName() 
    {
        return userIdName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("contactInfo", getContactInfo())
            .append("userId", getUserId())
            .append("nickname", getNickname())
            .append("status", getStatus())
            .append("replyContent", getReplyContent())
            .append("replyBy", getReplyBy())
            .append("replyTime", getReplyTime())
            .append("userIp", getUserIp())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
